package Chapter07.Homework;

import java.util.Scanner;

//公司测试类
public class Test01 {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        Company company=new Company();

        int choice = 0;
        while (true) {
            System.out.println("1 加入新员工 2 输出公司信息和员工信息 3 辞退员工 4 给员工涨薪 5 查找薪水最高的员工，返回员工信息");
            choice = input.nextInt();
            if (choice == 1) {
                System.out.println("请输入员工工号：");
                int number=input.nextInt();
                System.out.println("请输入员工姓名：");
                String name=input.next();
                System.out.println("清输入员工性别：");
                String gender=input.next();
                System.out.println("请输入员工职务：");
                String position=input.next();
                System.out.println("请输入员工薪水：");
                int salary=input.nextInt();
                System.out.println("请输入员工身份证号：");
                String id=input.next();
                System.out.println("请输入年限：");
                int year=input.nextInt();
                Employees name1=new Employees(number,name,gender,position,salary,id,year);
                company.add(name1);
            } else if (choice == 2) {
            } else if (choice == 3) {
            } else if (choice == 9) {
                break;
            }
        }
        System.out.println("结束了。。。");
    }
}
